pkg_name=dejavu-fonts-ttf
version=2.34
src_dir=$src_dir_root/$pkg_name-$version
#we do not use the official download link as it was failing at the time of package creation
url=http://ftp.uni-stuttgart.de/pub/mirrors/mirror.slitaz.org/slitaz/sources/packages/d/$pkg_name-$version.tar.bz2

cd "$src_dir_root"
rm -Rf "$pkg_name-$version"
tar jxf "$pkg_name-$version.tar.bz2"

install_tmp_dir=/tmp/$pkg_name-$version
rm -Rf "$install_tmp_dir"
mkdir -p "$install_tmp_dir/share/fonts"
cp -f $(find "$src_dir/ttf" -type f -name '*.ttf') "$install_tmp_dir/share/fonts"
mkdir -p "$install_tmp_dir/share/fontconfig/conf.avail"
cp -f $(find "$src_dir/fontconfig" -type f -name '*.conf') "$install_tmp_dir/share/fontconfig/conf.avail"

install_dirs "$builders_dir_root/$pkg_name/runtime.dirs"
install_files "$builders_dir_root/$pkg_name/runtime.files" "$install_tmp_dir"
install_links "$builders_dir_root/$pkg_name/runtime.links"

rm -Rf "$install_tmp_dir"
rm -Rf "$src_dir"

fc-cache -f -s -v
